package com.qingke.java.bean;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

@Entity
@Table(name="invitation")
public class Invitation {
	@Id
	@Column(name="id")
	private int id;
	
	@Column(name="invite_time")
	private String inviteTime;
	@Column(name="is_accepted")
	private String Isaccepted;
	@ManyToOne
	@JoinColumn(name="inviter_user_id")
	private User inviter;
	@ManyToOne
	@JoinColumn(name="invitee_user_id")
	private User invitee;
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}

	public String getInviteTime() {
		return inviteTime;
	}
	public void setInviteTime(String inviteTime) {
		this.inviteTime = inviteTime;
	}
	
	public String getIsaccepted() {
		return Isaccepted;
	}
	public void setIsaccepted(String isaccepted) {
		Isaccepted = isaccepted;
	}
	public User getInviter() {
		return inviter;
	}
	public void setInviter(User inviter) {
		this.inviter = inviter;
	}
	public User getInvitee() {
		return invitee;
	}
	public void setInvitee(User invitee) {
		this.invitee = invitee;
	}
	@Override
	public String toString() {
		return "Invitation [id=" + id + ", inviteTime=" + inviteTime + ", accepted=" + Isaccepted + "]";
	}
	
	
}
